import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.After;
import org.junit.Test;
import junit.framework.*;
import java.util.*;

public class EventTester extends TestCase {

	/*
	 * 	For every test, make some really easy values and stick them into the event.
	 * 	Make a string containing what you expect the program would spit out.  After
	 * 	that, check that the values inserted create something that is equal to the  
	 * 	expected value (assertEquals) or simply not null (assertNotNull)
	 * */
	AddEvent event;
	String expected = "TEST";
	/*
	 * 	Make a blank calendar event.  The values will be filled in when
	 * 	it is time to test the correct stuff.
	 * */
	@Before
	public void setUp() {
		event = new AddEvent();
	}
	
	//Classification Test (4.8.1.3)
	//Whether the event is public, private, or confidential
	@Test
	public void testClassType() {
		assertEquals(expected, event.getClassType());
	}
	
	//DTSTART Test 4.8.2.4
	//The date and time an event should begin
	@Test
	public void testDTSTART() {
		assertEquals(expected, event.getStartTime());
	}
	
	//DTEND Test  4.8.2.2
	//The date and time an event should end
	@Test
	public void testDTEND() {
		assertEquals(expected, event.getEndTime());	
	}
	
	//Resources Test  4.8.2.2
	//Are there any resources listed?
	@Test
	public void testResources() {
		assertNotNull(event.getResources());
	}
	
	//Time Zone Identifier Test  4.8.3.1
	//What is your time zone?
	@Test
	public void testTimeZoneIdentifier() {
		assertNotNull(TimeZone.getDefault().getID());
	}

  public static void main(String[] args) {
    TestSuite suite = new TestSuite(EventTester.class);
    junit.textui.TestRunner.run(suite);
  }
}
